﻿using System;
using System.Collections.Generic;
using System.Text;

using Kenly.ChineseSegment.Core;

namespace Kenly.ChineseSegment
{
    /// <summary>
    /// 分词字典。
    /// </summary>
    public interface ISegmentDictionary
    {
        /// <summary>
        /// 
        /// </summary>
        Dictionary<string, List<string>> Segments
        {
            get;
            set;
        }

        /// <summary>
        /// 
        /// </summary>
        List<string> SegmentList
        {
            get;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="segmentList"></param>
        /// <returns></returns>
        bool Parse(List<string> segmentList);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="segmentList"></param>
        /// <returns></returns>
        bool Append(List<string> segmentList);
    }
}
